/*
 * Copyright 2023, Haiku, Inc. All rights reserved.
 * Distributed under the terms of the MIT License.
 */
#ifndef WEATHER_VIEW_H
#define WEATHER_VIEW_H


#include <View.h>
#include <StringView.h>
#include <Bitmap.h>
#include <DateTime.h>


class WeatherView : public BView {
public:
						WeatherView(const char* name);
	virtual				~WeatherView();

	virtual void		AttachedToWindow();
	virtual void		MessageReceived(BMessage* message);
	virtual void		Pulse();


private:
	void				_InitInterface();
	void				_UpdateDateTime();
	void				_UpdateWeather();

	BStringView*		fTimeView;
	BStringView*		fDateView;
	BStringView*		fTemperatureView;
	BStringView*		fWeatherConditionView;
	BBitmap*			fWeatherIcon;

	BDateTime			fCurrentDateTime;
};


#endif // WEATHER_VIEW_H